package main;

import java.util.Date;

import core.Category;
import core.UserEntry;
import core.XmlEngine;

public class Compta {

	public static void main(String[] args) {
		System.out.print("Launch...");

		XmlEngine xml = XmlEngine.get();

		//xml.reset();
		xml.load();
		//Category cat1 = xml.addCategory("loyer");
		//Category cat2 = xml.addCategory("salaire");
		//UserEntry ent1 = xml.addEntry(100, "", cat1.getId(), new Date());
		//UserEntry ent2 = xml.addEntry(-500, "", cat2.getId(), new Date());

		/*
		 * xml.deleteCategory(cat1.getId()); xml.deleteEntry(ent2);
		 * xml.deleteCategory(24407319);
		 * xml.deleteEntry(xml.GetEntries().get(0)); xml.save();
		 */

		System.out.print("Close...");
	}

}
